/*
 * @Author: your name
 * @Date: 2022-02-27 23:35:11
 * @LastEditTime: 2022-03-03 23:34:17
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \the-way-of-interview\async-await.js
 */
// async function test() {
//     return '2'
// }
//
// console.log(test())//Promise { '2' }
//
let a = 0
let b = async () => {
    a = a + await 10
    console.log('21', a)
}

a++
console.log('11', a)

b()


// let e = 0;
// let c = async () => {
//     e  = e + await 10 
//     console.log('2',e)
// }
// c()
// e++
// console.log('1',e)
